html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
* {
  box-sizing: border-box;
}

#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: $textDefault;
  height: 100%;
  min-width: 1366px;
}

#nav {
  padding: 30px;
  a {
    font-weight: bold;
    color: $textDefault;
    &.router-link-exact-active {
      color: #42b983;
    }
  }
}

.pull-left {
  float: left !important;
}

.pull-right {
  float: right !important;
}

.text-right {
  text-align: right !important;
}

.text-left {
  text-align: left !important;
}

.text-center {
  text-align: center !important;
}

.justify-center {
  justify-content: center;
}

.align-items-center {
  align-items: center
}

.operation-container {
  padding: 10px 15px 0px;
  display: flex;
  align-items: center;

  .operation-left {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .operation-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .el-input {
    width: 350px;
    margin-left: 8px;
  }

  .el-checkbox {
    margin-left: 8px;
  }

  .m-left {
    margin-left: 8px;
  }
  
  .m-right {
    margin-right: 8px;
  }
}

.space-between {
  justify-content: space-between;
}

.table-list {
  padding: 10px 15px;
  background: #ffffff;
}

.form-add {
  height: 100%;
}

.form-container {
  text-align: left;
  padding-bottom: 20px;
  height: 100%;

  .form-header {
    border-bottom: 1px solid $borderDefault;
    padding: 8px;
    margin-bottom: 20px;
  }

  .form-content, .detail-content {
    .grid-content {
      display: flex;
      align-items: center;
      padding: 5px 0;
      min-height: 32px;

      .grid-key {
        min-width: 150px;
        padding-right: 10px;
        text-align: right;
      }

      .grid-value {
        flex: 1;
      }
    }
  }

  .form-content {
    width: 800px;
    padding: 0 8px;
    box-sizing: border-box;
    height: calc(100% - 50px);
    overflow: auto;
  }

  .form-content-all {
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
    height: calc(100% - 50px);
    overflow: auto;
  }

  .form-content-one {
    .el-input, input, select, .el-select  {
      width: 600px;
    }
  }

  .form-content-two {
    .el-input, .el-select  {
      width: 200px;
    }
  }

  .input-amount {
    .el-input, .el-select, input  {
      width: 80px;
    }
  }

  .form-flex {
    display: flex;
    justify-content: space-between;

    .form-flex-left {
      width: 700px;
    }

    .form-flex-right {
      flex: 1;
    }
  }

  .el-form-item--small {
    .el-form-item__label{
      display: flex;
      justify-content: flex-end;
      align-items: center;
      height: 32px;
      line-height: initial;
      word-break: break-word;
    }
  }

  .w-550 {
    width: 550px !important;

    .el-input {
      width: 550px !important;
    }
  }


  .w-100 {
    width: 100px !important;

    .el-input {
      width: 100px !important;
    }
  }


  .detail-content {
    width: 100%;
    padding: 0 8px;
  }

  .el-form-item__label{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 40px;
    line-height: initial;
    word-break: break-word;
  }

}

.form-input-wrap {
  .el-form-item__label{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 40px;
    line-height: initial;
    word-break: break-word;
  }
}

.table-list {
  
  .paginator {
    text-align: right;
    padding: 20px;
  }
}

.display-flex {
  display: flex;
}

.hover-color {
  cursor: pointer;
  &:hover {
    color: $blue;
  }
}

.text-default {
  color: $textDefault !important;
}

.bg-white {
  background-color: #ffffff;
  height: 100%;
  overflow: auto
}

// .el-table td, .el-table th {
//   padding: 6px 0;
// }

.el-button--mini, .el-button--mini.is-round {
  padding: 5px;
}

.white-hidden { //省略号
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-success {
  color: $green;
}

.text-warning {
  color: $orange;
}

.text-primary {
  color: $defaultBlue;
}

.text-danger {
  color: $errorRed;
}

.text-info {
  color: $gray;
}

.popconfirm-btn {
  padding: 0;
}

.f-16 {
  font-size: 16px;
}

.cursor-pointer {
  cursor: pointer;
}

.operation-icon {
  font-size: 16px;
  cursor: pointer;
  margin-right: 15px;
}

.el-input-number .el-input__inner {
  text-align: left
}

.word-break {
  word-break: break-all;
}

// 可选择按钮
.radius-btn {
  height: 40px;
  width: 100px;
  border: 1px solid #d7dae2;
  border-radius: 4px;
  overflow: hidden;

  word-break: break-all;
  padding: 4px;
  display: flex;
  align-items: center;
  margin-right: 10px;
  cursor: pointer;
  margin-bottom: 5px;

  .text {
    line-height: 18px;
    text-overflow: ellipsis;
    display: -webkit-box;
    white-space: initial;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

.active-btn {
  border: 1px solid $defaultBlue;
  position: relative;

  &::after {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\E6D0";
    color: #409eff;
    right: -1px;
    bottom: -1px;
    position: absolute;
    line-height: 16px;
  }
}

.pointer-events-none {
  pointer-events: none !important;
}

.inline-block {
  display: inline-block !important;
}

.list-container {
  height: 100%;

  .list-content {
    height: 100%;
  }

  .table-list {
    height: calc(100% - 42px);
  }
}

.overflow-auto {
  overflow: auto;
}

.line-clamp-two { // 省略两行
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-all;
}

.el-icon-question {
  color: $gray;
}

.com-line {
  margin: 0 0 20px 0;
  height: 5px;
  width: 50%;
  border: none;
  border-top: 2px dotted #dcdfe6;
}



@import "./filter.scss";
@import "./ui.scss";